{include file="public/header" /}
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_article}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <!--  新增红包数据  -->
    <form id="article_form" class="layui-form" method="post" action="{:url('Redpacket/addRedToMember')}">
        <table class="ds-default-table">
            <tbody>
            <!--用户手机号-->
            <tr class="noborder">
                <td class="required w120">用户手机号：</td>
                <td class="vatop rowform"><input type="text" name="member_mobile" id="member_mobile" class="w200"/></td>
                <td class="vatop tips"></td>
            </tr>
            <!--红包金额-->
            <tr class="noborder">
                <td class="required w120">红包金额：</td>
                <td class="vatop rowform"><input type="text" name="red_amount" id="red_amount" class="w200"/></td>
                <td class="vatop tips"></td>
            </tr>
            <!--红包开始使用时间-->
            <tr class="noborder">
                <td class="required w120">红包开始时间：</td>
                <td class="vatop rowform"><input type="text" name="start_date" id="start_date" class="text w200 hasDatepicker" value="{:date('Y-m-d',time())}" /></td>
                <td class="vatop tips"></td>
            </tr>
            <!--红包结束时间-->
            <tr class="noborder">
                <td class="required w120">红包过期时间：</td>
                <td class="vatop rowform"><input type="text" name="end_date" id="end_date" class="text w200 hasDatepicker" value="{:date('Y-m-d',time())}" /></td>
                <td class="vatop tips"></td>
            </tr>
            </tbody>
            <tfoot>
            <tr class="tfoot">
                <td colspan="4"><input id="submitBtn" class="btn" type="submit" value="确认推送"/></td>
            </tr>
            </tfoot>
        </table>
    </form>
</div>

<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui-v2.5.5/css/layui.css" />
<script src="https://www.layuicdn.com/layui-v2.5.5/layui.js"></script>
<!--页面JS控制脚本-->
<script type="text/javascript">
    layui.use(['form','laydate'],function(){
        var form = layui.form;
        var laydate = layui.laydate;
        //日期
        laydate.render({
            elem: '#start_date'
        });
        laydate.render({
            elem: '#end_date'
        });
    });
</script>